package com.mingqijia.gassafety.db.mapper;

import com.mingqijia.gassafety.db.entity.ValveInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mingqijia.gassafety.db.entity.vo.ValveInfoListVO;
import com.mingqijia.gassafety.db.entity.vo.ValveInfoVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 电磁阀信息表 Mapper 接口
 * </p>
 *
 * @author li.shiying
 * @since 2023-08-22
 */
@Repository
@Mapper
public interface ValveInfoMapper extends BaseMapper<ValveInfo> {

    List<ValveInfoListVO> getValveInfoList(@Param("valveName") String valveName,
                                                @Param("valveModel") String valveModel,
                                                @Param("valveManufacturer") String valveManufacturer,
                                                @Param("spId")String spId);

    ValveInfoVO getValveInfos(@Param("dtuId") String id, @Param("valveId") Integer valveId);
}
